//
//  FPIncreaseLimitDetailHeader.m
//  FinanceProject
//
//  Created by 陈显摆 on 2025/4/9.
//

#import "FPIncreaseLimitDetailHeader.h"

@implementation FPIncreaseLimitDetailHeader

- (void)awakeFromNib {
    
    [super awakeFromNib];
    
    self.backgroundColor = UIColor.clearColor;
    
    self.backView.clipsToBounds = YES;
    self.backView.layer.cornerRadius = 8.f;
    
    self.tipLab4.adjustsFontSizeToFitWidth = YES;
    
    self.tipLab1.textColor = [UIColor hexColor:@"#FFFFFF"];
    self.tipLab2.textColor = [UIColor hexColor:@"#FFFFFF"];
    self.tipLab3.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.tipLab4.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.tipLab5.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.amountLab.textColor = [UIColor hexColor:@"#3A3A3A"];
    
    NSString *text = @"完成一下全部认证，额度最高可提至20万(以审核为准)";
    NSRange range = [text rangeOfString:@"(以审核为准)"];
    NSMutableAttributedString *attStr = [[NSMutableAttributedString alloc] initWithString:text];
    [NSString stringToAttribute:attStr color:[UIColor hexColor:@"#9A9A9A"] range:range];
    
    self.tipLab4.attributedText = attStr;
}

@end
